<!DOCTYPE html>
<html>
  <head>
    <title>申请经纪人</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/weui.min.css">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/jquery-weui.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/base.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/component.css">
      <link rel="stylesheet" type="text/css" href="${s.base}/mobile/base/lib/DateSelector/DateSelector.css?rev=@@hash"/>
  </head>
  <body>
	<div class="xyg-comp-list-select" style="margin-top: 0.5rem;">
       <div class="xyg-comp-list-select-item">
            <div class="xyg-comp-list-select-item-title"> 
             申请级别
            </div>
             <div class="xyg-comp-list-select-item-content"> 
             <input type="text" value="经纪人" readonly />
            </div>
       </div>
        <div class="xyg-comp-list-select-item">
            <div class="xyg-comp-list-select-item-title">
                推荐会员号
            </div>
            <div class="xyg-comp-list-select-item-content">
                <input type="text" id="oneCardNo" value="${webMember.oneCardNo}" <#if webMember.oneCardNo?? && webMember.oneCardNo !="" >readonly</#if> placeholder="请输入推荐会员号" />
            </div>
        </div>
        <input type="hidden" id="id" value="${hostApply.id}"/>

        <#if hostApply?? && hostApply.checkStatus='1'>
            <div class="xyg-comp-list-select-item">
                <div class="xyg-comp-list-select-item-title">
                    审核状态
                </div>
                <div class="xyg-comp-list-select-item-content">
                    <input type="text" value="待审核" readonly />
                </div>
            </div>
            <#elseif hostApply?? && hostApply.checkStatus='2'>
                <div class="xyg-comp-list-select-item">
                    <div class="xyg-comp-list-select-item-title">
                        审核状态
                    </div>
                    <div class="xyg-comp-list-select-item-content">
                        <input type="text" value="审核通过" readonly />
                    </div>
                </div>
                <#elseif hostApply?? && hostApply.checkStatus='3'>
                    <div class="xyg-comp-list-select-item">
                        <div class="xyg-comp-list-select-item-title">
                            审核状态
                        </div>
                        <div class="xyg-comp-list-select-item-content">
                            <input type="text" value="审核未通过" readonly />
                        </div>
                    </div>
                    <div class="xyg-comp-list-select-item">
                        <div class="xyg-comp-list-select-item-title">
                            原因
                        </div>
                        <div class="xyg-comp-list-select-item-content">
                            <input type="text" value="${hostApply.checkResult}" readonly />
                        </div>
                    </div>

        </#if>
        <div class="xyg-comp-list-select-item" style="height: 6rem;">
            <textarea style="width: 100%; height:5rem;border: 0px; margin-top: 0.5rem; line-height: 1rem;color: #999999;" id="applyReason" <#if hostApply?? && hostApply.checkStatus!='3'>readonly</#if> placeholder="申请理由...">${hostApply.applyReason}</textarea>
        </div>
  	</div>
   <div class="xyg-bottom">
       <#if hostApply?? && hostApply.checkStatus='1'>
           <#elseif hostApply?? && hostApply.checkStatus='2'>
               <#elseif hostApply?? && hostApply.checkStatus='3'>
                   <a href="javascript:submit();" class="weui-btn weui-btn_warn">重新申请</a>
           <#else>
               <#if webMember.phone==""||webMember.phone==null>
                   <a href="javascript:$.alert('您还没有完善个人信息，请先完善个人信息吧！',function () {goWdmpPage('${memberId}');});" class="weui-btn weui-btn_warn">提交申请</a>
                   <#else>
                       <a href="javascript:submit();" class="weui-btn weui-btn_warn">提交申请</a>
               </#if>

       </#if>

    </div>

  <style type="text/css">
	  html,body{background:#f5f5f5;}
  	.xyg-comp-list-select{width:92%; margin: 0px 4%; height:auto;}
	  .xyg-comp-list-select .xyg-comp-pic{width:90%; padding:0.5rem 5%; background: #FFF;}
	  .xyg-comp-list-select .xyg-comp-pic-title{width:100%;line-height:1.5rem; padding-bottom: 0.5rem; font-size: 0.8rem; color:#000; letter-spacing: 0.01rem; }
	  .xyg-comp-list-select .xyg-comp-pic-title-left{width: 50%; height: 6rem; float: left;}
	   .xyg-comp-list-select .xyg-comp-pic-title-left img{width: 100%; height: 6rem;}
	   .xyg-comp-list-select .xyg-comp-pic-title-right{width: 50%; height: 6rem; float: left;}
	  
	.xyg-comp-list-select-item{width:90%; padding:0px 5%; line-height:2.2rem; height:2.2rem;font-size: 0.8rem; color:#000; letter-spacing: 0.01rem; background: #FFF; border: 0.001rem solid #f5f5f5;}
	  
 .xyg-comp-list-select-item textarea::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #999999;
}
 .xyg-comp-list-select-item textarea:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #999999;
}
 .xyg-comp-list-select-item textarea::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #999999;
}
 .xyg-comp-list-select-item textarea::-ms-input-placeholder {
  /* Internet Explorer 10+ */
	color: #999999;}
 

	  .xyg-comp-list-select-item input::-webkit-input-placeholder {color: #999999;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-icon{width:70%; line-height:2rem; text-align:right; float:left; color: #999999;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-title{width:30%; height:2rem; text-align:left; float:left;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-content{width:70%; height:2rem; text-align:left; float:left;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-content input{width:100%; height:2rem; line-height:2rem;background-color:transparent;border:0; text-align:right;}
	.xyg-comp-xy{height:2rem; line-height:2rem; width:width:93%; margin:0px 2% 0px 5%;}
	.xyg-bottom{width:90%; height:auto;  margin:1.5rem 5%;}
  </style>
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/jquery-weui.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/swiper.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/component.js?12323434323232323232" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/wechat/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/wechat/js/window_port.js"></script>
  <script src="${s.base}/mobile/wechat/js/base.js"></script>
  <script type="text/javascript">
      var memberId='${memberId}';
      function submit() {
          var id = $("#id").val();
          var oneCardNo = $("#oneCardNo").val();
          var applyReason = $("#applyReason").val();
          if(applyReason == null || applyReason == "") {
              $.toast("请输入申请理由", "text");
              return false;
          }
          $.fn.postMethodResult("/weChat/applySave",{'id':id,'applyReason':applyReason,'oneCardNo':oneCardNo,'memberId':memberId},function (data) {
              $.alert("您申请提交成功，我们将会及时处理！",function () {
                  goMyPage(memberId);
              });
          });
      }
  </script>
</html>

